<div class="bjui-pageContent">
    <form action="${wwwroot}/admin/agentnode/save" id="editForm" data-toggle="validate" data-alertmsg="false" reloadNavtab="true">
        <input type="hidden" name="id" value="${(agentNode.id)!}" />
        <div class="pageFormContent" data-layout-h="0">
            <table class="table table-condensed table-hover" width="100%">
                <tbody>
                    <tr>
                        <td>
                            <label for="agentId" class="control-label x85">代理ID：</label>
                            <select name="agentId" id="depId" data-toggle="selectpicker">
                                <option value="" >---</option>
                            <#list agents as agent>
                                <option value="${(agent.id)!}" <#if agentNode.agentId??&agentNode.agentId=agent.id>selected</#if>>${(agent.name)!}</option>
                            </#list>
                            </select>
                        </td>
                        <td>
                            <label for="nodeId" class="control-label x85">节点ID：</label>
                            <select name="nodeId" id="depId" data-toggle="selectpicker">
                                <option value="" >---</option>
                            <#list dbServers as dbServer>
                                <option value="${(dbServer.id)!}" <#if agentNode.nodeId??&agentNode.nodeId=dbServer.id>selected</#if>>${(dbServer.dbAlias)!}</option>
                            </#list>
                            </select>
                            <#--<input type="text" name="nodeId" id="nodeId" value="${(agentNode.nodeId)!}" data-rule="required" >-->
                        </td>
                        <td>
                            <label for="groupType" class="control-label x85">分组类型：</label>
                            <#--<input type="text" name="groupType" id="groupType" value="${(agentNode.groupType)!}" data-rule="required" >-->
                            <select name="groupType" id="groupType" data-toggle="selectpicker">
                                <option value="" >---</option>
                            <#list groupTypes as groupType>
                                <option value="${(groupType.groupType)!}" <#if agentNode.groupType??&&agentNode.groupType=groupType.groupType>selected</#if>>${(groupType.note)!}</option>
                            </#list>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label for="bizUnit" class="control-label x85">业务单元：</label>
                            <#--<input type="text" name="bizUnit" id="bizUnit" value="${(agentNode.bizUnit)!}" data-rule="required" >-->
                            <select name="bizUnit" id="bizUnit" data-toggle="selectpicker">
                                <option value="" >---</option>
                            <#list bizUnits as bizUnit>
                                <option value="${(bizUnit.unitName)!}" <#if agentNode.bizUnit??&&agentNode.bizUnit=bizUnit.unitName>selected</#if>>${(bizUnit.unitName)!}</option>
                            </#list>
                            </select>
                        </td>
                        <td>
                            <label for="bizType" class="control-label x85">业务类型：</label>
                            <#--<input type="text" name="bizType" id="bizType" value="${(agentNode.bizType)!}" data-rule="required" >-->
                            <select name="bizType" id="bizType" data-toggle="selectpicker">
                                <option value="" >---</option>
                            <#list bizTypes as bizType>
                                <option value="${(bizType.typeName)!}" <#if agentNode.bizType??&agentNode.bizType=bizType.typeName>selected</#if>>${(bizType.typeName)!}</option>
                            </#list>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label for="sysRank" class="control-label x85">系统级别：</label>
                            <input type="text" name="sysRank" id="sysRank" value="${(agentNode.sysRank)!}"  >
                        </td>
                        <td>
                            <label for="opSystem" class="control-label x85">操作系统：</label>
                            <input type="text" name="opSystem" id="opSystem" value="${(agentNode.opSystem)!}"  >
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </form>
</div>
<div class="bjui-pageFooter" >
    <ul>
        <li><button type="button" class="btn btn-close" data-icon="close">取消</button></li>
        <li><button type="submit" class="btn btn-success" data-icon="save">保存</button></li>
    </ul>
</div>
